<?php

class Zabbix_Sensor {

    protected $_options = array();

    public function setOptions($options) {
        $this->_options = $options;
    }

    /**
     *
     */
    public function getOptions() {
        return $this->_options;
    }

    /**
     * Get option
     *
     * @return string
     */
    public function getOption($name, $defaultValue = null) {



        $result = $defaultValue;
        if (array_key_exists($name, $this->_options)) {
            $result = $this->_options[$name];
        }
        return $result;
    }

}